﻿@using Nop.Web.Framework;
@{
Layout = "~/Views/Shared/_Root.Head.cshtml";
Html.AppendCssFileParts(Url.Content("~/Themes/CNet/Content/index.css"));
}

<script type="text/javascript">
    //遮罩层代码
    var clientH = null;
    var myElement = null;
    window.onload = function () {
        clientH = document.documentElement.clientHeight;
        if (isSafari = navigator.userAgent.indexOf("Safari") > 0) {
            myElement = document.body;
        } else {
            myElement = document.documentElement;
        }
    }

    function showMyCover(elem) {
        var myWidth = (document.documentElement.clientWidth / 2) - ($("#" + elem).width() / 2);
        $("#" + elem).css("top", (myElement.scrollTop + (clientH / 2) - ($("#" + elem).height() / 2)) + "px");
        $("#" + elem).css("left", myWidth + "px");
        $("#bodyBackGround").css("display", "block");
        $("#" + elem).css("display", "block");
    }

    function closeMyCover(elem) {
        $("#bodyBackGround").css("display", "none");
        $("#" + elem).css("display", "none");
    }


    $(function () {
        //滚动条滚动时修改top的值
        $(window).scroll(function () {
            var scTop = $(window).scrollTop();
            if (scTop <= 93) {
                var leftTop = 93 - scTop;
                $("#myDivFloat").css("position", "absolute");
            } else {
                $("#myDivFloat").css("position", "fixed");
            }
        });
    });
</script>
@Html.Partial("_Top_Navigation")

<div class="shop_main">
<div class="user">
<div class="user_name">
@RenderSection("userInfo",false)
</div>
<div class="user_left_menu">
<div id="widget">
@RenderSection("left")
</div>
</div>
@RenderSection("right",false)
 
@RenderBody()
</div>
</div>

@Html.Partial("_Footer")